# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-rsa
_pkgname=rsa
pkgver=4.6
pkgrel=0
pkgdesc="Pure-Python3 RSA implementation"
url="https://stuvel.eu/rsa"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-asn1 py3-setuptools"
checkdepends="py3-pytest py3-mock py3-mypy"
source="https://files.pythonhosted.org/packages/source/r/rsa/rsa-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-rsa" # Backwards compatibility
provides="py-rsa=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	python3 -m pytest
}

sha512sums="643ee292780c2e35c8f2c3750eb291799b051bd2bd2aa5332884b35fb46c8a0c53f09c38f196e02aed329af7562bcb20f23e876e54f89bed5fb416220c809f9d  rsa-4.6.tar.gz"
